package com.maze.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maze.activity.mapper.ActivityEvaluationsMapper;
import com.maze.activity.domain.ActivityEvaluations;
import com.maze.activity.service.IActivityEvaluationsService;

/**
 * 活动评价Service业务层处理
 * 
 * @author xixi.wang
 * @date 2025-03-31
 */
@Service
public class ActivityEvaluationsServiceImpl implements IActivityEvaluationsService 
{
    @Autowired
    private ActivityEvaluationsMapper activityEvaluationsMapper;

    /**
     * 查询活动评价
     * 
     * @param evId 活动评价主键
     * @return 活动评价
     */
    @Override
    public ActivityEvaluations selectActivityEvaluationsByEvId(Long evId)
    {
        return activityEvaluationsMapper.selectActivityEvaluationsByEvId(evId);
    }

    /**
     * 查询活动评价列表
     * 
     * @param activityEvaluations 活动评价
     * @return 活动评价
     */
    @Override
    public List<ActivityEvaluations> selectActivityEvaluationsList(ActivityEvaluations activityEvaluations)
    {
        return activityEvaluationsMapper.selectActivityEvaluationsList(activityEvaluations);
    }

    /**
     * 新增活动评价
     * 
     * @param activityEvaluations 活动评价
     * @return 结果
     */
    @Override
    public int insertActivityEvaluations(ActivityEvaluations activityEvaluations)
    {
        return activityEvaluationsMapper.insertActivityEvaluations(activityEvaluations);
    }

    /**
     * 修改活动评价
     * 
     * @param activityEvaluations 活动评价
     * @return 结果
     */
    @Override
    public int updateActivityEvaluations(ActivityEvaluations activityEvaluations)
    {
        return activityEvaluationsMapper.updateActivityEvaluations(activityEvaluations);
    }

    /**
     * 批量删除活动评价
     * 
     * @param evIds 需要删除的活动评价主键
     * @return 结果
     */
    @Override
    public int deleteActivityEvaluationsByEvIds(Long[] evIds)
    {
        return activityEvaluationsMapper.deleteActivityEvaluationsByEvIds(evIds);
    }

    /**
     * 删除活动评价信息
     * 
     * @param evId 活动评价主键
     * @return 结果
     */
    @Override
    public int deleteActivityEvaluationsByEvId(Long evId)
    {
        return activityEvaluationsMapper.deleteActivityEvaluationsByEvId(evId);
    }
}
